import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import FormDemo from '@/components/FormDemo'
import PersonalCenter from '@/views/nav/PersonalCenter'
import Data from '@/components/Data'
import Demo from '@/components/Demo'
import WordDemo from '@/components/WordDemo'
import WordDemo2 from '@/components/WordDemo2'
import WordDemo3 from '@/components/WordDemo3'
import Pdf from '@/components/Pdf'
import Pdf2 from '@/components/Pdf2'
Vue.use(Router)

export default new Router({
  routes: [
    // {path:"/", redirect:"/hello"},
    
    {
      path: '/',
      name: 'PersonalCenter',
      component: PersonalCenter,
      children:[
        {
          path: '/hello',
          name: 'HelloWorld',
          component: HelloWorld
        },
        {
          path: '/demo',
          name: 'FormDemo',
          component: FormDemo
        },
        {
          path: '/demo2',
          name: 'Demo',
          component: Demo
        },
        {
          path: '/wordDemo',
          name: 'WordDemo',
          component: WordDemo
        },
        {
          path: '/wordDemo2',
          name: 'WordDemo2',
          component: WordDemo2
        },
        {
          path: '/wordDemo3',
          name: 'WordDemo3',
          component: WordDemo3
        },
        {
          path: '/pdf',
          name: 'PDF',
          component: Pdf
        },
        {
          path: '/pdf2',
          name: 'PDF2',
          component: Pdf2
        },
      ]
    },
    {
      path: '/data',
      name: 'Data',
      component: Data
    },
  ],
  // mode: history  

})
